var defineConfig={
	
  appointStatus :{"1":"待受理","2":"已受理","3":"已退回","4":"完成","5":"已转交"},

    appointStatus2 :{"5":"待处理","4":"完成"},
  
  appointStep :{"1":"提交","2":"受理","3":"退回","4":"完成","5":"转交"},
  
  pyToCityName : {"xuanwu":"玄武区","qinhuai":"秦淮区","gulou":"鼓楼区","jianye":"建邺区","qixia":"栖霞区","yuhuatai":"雨花台区","pukou":"浦口区","jiangning":"江宁区","liuhe":"六合区","lishui":"溧水区","gaochun":"高淳区","jiangbei":"江北新区","gaoxinkaifa":"南京高新区","nanjingkaifa":"南京经开区","jiangningkaifa":"江宁经开区","huagongyuan":"南京化工业区","qita":"其他"},

  companyNature:{"1":"国有企业","2":"集体企业","3":"联营企业","4":"股份合作制企业","5":"私营企业","6":"个体户","7":"合伙企业","8":"有限责任公司","9":"股份有限公司","10":"其他"},
  
  signup_status:{"0":"待办","1":"已同意"},

  appeal_Step:{"0":"处理(当前步骤)","1":"提交诉求","2":"修改诉求","3":"受理诉求并生成工单","4":"不受理诉求","5":"咨询诉求","6":"反馈诉求","7":"转交工单","8":"受理工单"
	  ,"9":"退回工单","10":"咨询工单","11":"反馈工单","12":"办结反馈","13":"关闭工单","14":"评分"},

  file_Step:{"0":"来自诉求","1":"提交诉求","2":"修改诉求","3":"受理诉求并生成工单","4":"不受理诉求","5":"咨询诉求","6":"反馈诉求","7":"转交工单","8":"受理工单"
    ,"9":"退回工单","10":"咨询工单","11":"反馈工单","12":"办结反馈","13":"关闭工单","14":"评分"},
  appeal_state:{"1":"待受理","2":"处理中","3":"未受理","4":"已办结"},
  
  worklist_state:{"1":"待处理","2":"处理中","3":"退回","4":"办结","5":"关闭"},
  
//  appealChooseStatus:{"1|2|9|10":"已提交","4|5|6":"处理中","7":"待评分","8":"结束"},
  
  appraise:{"1":"不满意","2":"理解","3":"比较满意","4":"满意"},

    notice_state:{"1":"审核中","2":"报名成功","3":"报名失败"},
  
  getCityPy:function(name){
      return this.cityNameToPy[name];
  },
  getCityName:function(py){
     return this.pyToCityName[py];
  },
  getAppointStatusName:function(stateid){
      return this.appointStatus[stateid];
  },
    getAppointStatusName2:function(stateid){
      if(this.appointStatus2[stateid])
        return this.appointStatus2[stateid];
      else
        return '';
    },
  getCompanyNatureName:function(stateid){
	  return this.companyNature[stateid];
  },
  getNoticeTypeName:function(stateid){
	  return this.noticeType[stateid];
  },
  getSignup_status:function(stateid){
      return this.signup_status[stateid];
  },
  getAppealStatus:function(stateid){
	  return this.appeal_state[stateid];
  },
  getWorklist_state:function(stateid){
	  return this.worklist_state[stateid];
  },
  getAppeal_Step:function(stateid){
	  return this.appeal_Step[stateid];
  },
  getAppraiseName:function(stateid){
	  return this.appraise[stateid];
  },
  getFileStep:function(name){
      return this.file_Step[name];
  },
  getNoticeStatus:function(name){
        return this.notice_state[name];
  },
};

function appointStephtml(){
    $("#appoint_step").empty();
    var html = '<a class="active" value="ALL">全部</a>';
    for(var i in defineConfig.appointStatus2){
        html += '<a class"" value='+i+'>'+defineConfig.appointStatus2[i]+'</a>';
    }
    $("#appoint_step").append(html);
}

function companyAreahtml(){
  var html = '';
  for(var i in defineConfig.pyToCityName){
    html += '<a class"" value='+i+'>'+defineConfig.pyToCityName[i]+'</a>';
  }
  $("#area").append(html);
}

function companyNaturehtml(){
  var html = '';
  for(var i in defineConfig.companyNature){
    html += '<a class"" value='+i+'>'+defineConfig.companyNature[i]+'</a>';
  }
  $("#company_nature").append(html);
}
